package cn.teduo;

public class dou30 {
    public static void main(String[] args) {
        /*创建内部类对象.使用内部类的资源
        *外部类名.内部类名 对象名xx =  new外部类.new内部类
        * */
        waibu.neibu oi = new waibu().new neibu();
        oi.delete();
        System.out.println(oi.sum);
        waibu b = new waibu();
        b.find();
    }
}

class waibu{
    String name;
    Integer age ;
    public void  find(){
        System.out.println("我是一个外部类");
         neibu w = new neibu();
        System.out.println(w.sum);
    }
    class neibu{
        Integer sum = 10 ;
        Integer age ;
        public void  delete(){
            System.out.println("afadasdda");
            find();
            System.out.println(name);
            System.out.println(this.age);
        }
    }
}